From c5cc4647eeafb805db77e31864731c4ff63a52de Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 24 May 2005 05:14:33 +0000 Subject: [PATCH] Use memmove for overlapping mem copy. --- gpsbabel/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/util.c b/gpsbabel/util.c index d1a5fa82a..4ce40cf4f 100644 --- a/gpsbabel/util.c +++ b/gpsbabel/util.c @@ -895,7 +895,7 @@ char * str_utf8_to_ascii( const char * str ) cur += bytes - 1; } else { *cur = (char)value; - strcpy( cur+1, cur+bytes ); + memmove(cur+1, cur+bytes, bytes+1); } } cur++; -- 2.30.2